package com.project.bean;

import java.util.List;

//房间对象
public class RoomBean {
    /**
     * 房间id
     */
    private Integer id;
    /**
     * 房间地址
     */
    private String address;
    /**
     * 容纳人数
     */
    private Integer maxNumber;
    /**
     * 已住人数
     */
    private Integer number;
    /**
     * 房间状态,默认为正常
     */
    private String state = "正常";
    /**
     * 房间类别
     */
    private String type;
    /*学生集合*/
    private List<StudentBean> student;


    public RoomBean() {
    }

    public RoomBean(String address, Integer maxNumber, String type) {
        this.address = address;
        this.maxNumber = maxNumber;
        this.type = type;
    }

    @Override
    public String toString() {
        return "RoomBean{" +
                "id=" + id +
                ", address='" + address + '\'' +
                ", maxNumber=" + maxNumber +
                ", number=" + number +
                ", state='" + state + '\'' +
                ", type='" + type + '\'' +
                ", student=" + student +
                "\n";
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getMaxNumber() {
        return maxNumber;
    }

    public void setMaxNumber(Integer maxNumber) {
        this.maxNumber = maxNumber;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<StudentBean> getStudent() {
        return student;
    }

    public void setStudent(List<StudentBean> student) {
        this.student = student;
    }
}
